//
//  SRSportPart+Cate.h
//  SportRing
//
//  Created by Apple on 14/10/29.
//  Copyright (c) 2014年 HotOne. All rights reserved.
//

#import "SRSportPart.h"
#import "SRMe.h"

@interface SRSportPart (Cate)

+ (SRSportPart *)sportPartForDay:(SRDay *)day;

- (void)configAttributesWithBlock:(void(^)(SRSportPart * aSelf))block;

@end

@interface SRSportPart (Find)

+ (NSArray *)findAllUnuploadSportParts:(SRMe *)me;

+ (NSArray *)findSportPartsForDay:(SRDay *)day;

+ (SRSportPart *)findSportPartForDay:(SRDay *)day forSection:(NSInteger)section;

+ (SRSportPart *)findSportPartCINEForDay:(SRDay *)day forSection:(NSInteger)section;

+ (float)totalMileage:(SRMe *)me;

+ (float)totalCalorie:(SRMe *)me;

+ (float)totalRunCounter:(SRMe *)me;

+ (float)totalUpstairsCounter:(SRMe *)me;

+ (float)totalWalkCounter:(SRMe *)me;

@end


@interface SRSportPart (Delete)

+ (void)deleteSportPart:(SRSportPart *)part;

@end
